<template>
  <div class="app-container">
    <ChartGroupCard :data="data"/>
    <Sale :data="data"/>
  </div>
</template>

<script setup lang="js">
import { ref } from 'vue';
import ChartGroupCard from './components/ChartGroupCard.vue';
import Sale from './components/Sale.vue';
import {getHomeData} from '@/api/home.js'

const data =ref()
const getTotalValue = () => {
  getHomeData().then(res => {
    data.value=res.data
  })
}
getTotalValue()
</script>
<style scoped></style>